xen/arm: Directly return NULL if Xen fails to allocate domain struct
authorJulien Grall <julien.grall@linaro.org>
Fri, 31 Jan 2014 22:22:45 +0000 (22:22 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 4 Feb 2014 14:48:44 +0000 (14:48 +0000)
commitea527eda9e1f7a8dcd4cf799c01c4b11468e952f
treeff4daf317cbad52621174bde2947f43319dcfc8d
parent46b5f0fd1fe7a49fb993fbad8a1fa232e2253afc
xen/arm: Directly return NULL if Xen fails to allocate domain struct

The current implementation of alloc_domain_struct, dereference the newly
allocated pointer even if the allocation has failed.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/domain.c